home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh +x
-
- # use -x for extensive logging
-
-
- /bin/chmod 755 "$1/Contents/Resources/VideoInstallerTools.sh"
- source "$1/Contents/Resources/VideoInstallerTools.sh"
-
- if [ -r "$1/Contents/Resources/Inventory.sh" ]
- then
- source "$1/Contents/Resources/Inventory.sh"
- fi
-
- processPostflightArgs "$1" "$2" "$3" "$4"
- defineInstallLocations "IOXperts" "IOXperts"
-
- # Logs
- mkdir -p "/Library/Logs/IOXperts"
- chmod 777 "/Library/Logs/IOXperts"
-
- # Prepare All Components
- fixDirectoryPermissions
- prepareCameraControl
- prepareDeviceMonitor
- prepareRegisterApp
- prepareSessionMonitor
- prepareIdentifierApp
-
-
- # Logs
- mkdir -p "/Library/Logs/IOXperts"
- chmod 777 "/Library/Logs/IOXperts"
-
- # Components
- showInstallerState "Preparing Video Digitizer"
- prepareInstalledComponent "${DIGITIZER_COMPONENT}" "IOXperts Webcam" ".component"
-
- showInstallerState "Preparing SGPanel"
- prepareInstalledComponent "${SGPANEL_COMPONENT}" "IOXperts Video Support" ".component"
-
- repairQuickTime
-
- # TODO - require reboot instead of starting DM.
- # TODO - if can't find register app, or SM uncomment the following line to force launch prefs
- # setAppLocationPreferences
- registerDeviceMonitorAsGlobalLoginItem
- registerSessionMonitorAsGlobalLoginItem
- # registerAppsWithLaunchServices - not avl on 10.2.8
- startDeviceMonitor
- startSessionMonitor
-
- # NOTE - added this for beta - have SM launch this as needed instead.
- startIdentifierApp
-
- showInstallerState "Postflight Completed"
- exit 0
-
-